home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3698 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  838 b 

  1. Path: li.net!usenet
  2. From: bsilvern@li.net (Bob Silvern)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Large Array in Borland/Turbo C++
  5. Date: Thu, 25 Jan 1996 17:31:58 GMT
  6. Organization: Harmony Graphics
  7. Message-ID: <4e8eqi$kbb@linet02.li.net>
  8. References: <4e3rd8$q75@news.dgsys.com>
  9. NNTP-Posting-Host: lisuser44.li.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. eweiss@winchendon.com (Eric Weiss) wrote:
  13.  
  14.  
  15. >Is there any easy way to declare and use an array of say 100,000 doubles in 
  16. >Borland/Turbo C++?  The problem is that if I use a huge pointer, I lose random 
  17. >access to the array.  I know I could use Watcom and it DOS extender, but the 
  18. >rest of my program works fine in Borland C++.
  19.  
  20. >Thanks.
  21.  
  22. >Eric
  23. >eweiss@winchendon.com
  24.  
  25.  
  26. Am I missing something?  Why not:
  27.  
  28. double huge doub[100000];
  29.  
  30. long i;
  31.  
  32. for (i=0; i<100000; i++)
  33.   doub[i] = ...
  34.  
  35.  
  36.  
  37.  
  38.  
  39.